<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>portfile_details</title>
	<!-- 为IE9之前的版本创造HTML5的元素 -->
	<!--[if lt IE 9]>
		<script>
			var e = ("abbr,article,aside,audio,canvas,datalist,details,figure,footer,header,hgroup,mark,menu,meter,nav,output,progress,section,time,video").split(',');
			for(var i = 1; i < e.length; i++)
				document.createElement(e[i]);
		</script>
	<![endif]-->
	<link rel="stylesheet" href='../Public/css/all.css' />
	<style type='text/css'>
		#de_title{
			font-size: 18px;
			text-indent: 10px;
		}
		table{
			width:100%;
			border-collapse: collapse;
		}
		table,tr,td{
			border: 1px solid #ffd99c;
		}
		.td1{
			width: 110px;
			text-align: center;
			padding: 5px;
		}
		.td2{
			width: 611px;
			padding: 5px;
		}  
		#a_img{
			position:relative;
			top:4px;
		}
		#detailes{padding:3px 3px 1px 3px;}
	</style>
</head>
<body onload='setheight()'>
	<!-- 详细内容 -->
	<div id="detaileContainer">
		<div id="detailes">
			<table id='detailtable'>
				<tr>
					<td class='td1'>标题</td>
					<td class='td2'>{$list.title}</td>
				</tr>
				<tr>
					<td class='td1'>发布人</td>
					<td class='td2'>{$list.publisher}</td>
				</tr>
				<tr>
					<td class='td1'>发布时间</td>
					<td class='td2'>{$list.publishtime|date="y-m-d",###}</td>
				</tr>
				<tr>
					<td class='td1'>附件名称</td>
					<td class='td2'>{$list.savename|default="无"}</td>
				</tr>
				<tr>
					<td class='td1'>附件路径</td>
					<td class='td2'><notempty name="list.savename">
						<img id="a_img" src="../Public/images/download.png" title="附件下载"/><a href="__APP__/download?src={$list.savepath}&name={$list.savename}" >点击下载</a>
					<else />无
					</notempty></td>
				</tr>
				<tr>
					<td class='td1'>内容</td>
					<td class='td2'>{$list.contents}</td>
				</tr>
			</table>
		</div>
	</div>
	<script>
	function setheight(){
		var newHeight = document.body.clientHeight;
		window.parent.document.getElementById("P_inf").height = newHeight;
		window.parent.document.getElementById("portfile_detail").height = newHeight;
		//以上firefox通过，但是ie6必须加上下面这句，不然iframe高度是改了，但是可见区域没有改
		window.parent.document.getElementById("P_inf").height = newHeight;
	}
	</script>
</body>
</html>
